let postsData = require('../../data/posts-data.js');

Page({

  data: {
    posts_key : [],
  },

  onLoad: function (options) {
    this.setData({
      posts_key: postsData.postList
    })
  },

  onSwiperInfo:function(e){
    let swiper = e.target.dataset.swiperId;
    wx.navigateTo({
      url: '/pages/posts/post-info/post-info?id=' + swiper,
    })
  },
})